const http = (  function () {
    return{
        async getindex(url){
            try {
                let data =  await fetch('http://bird.ioliu.cn/v2/?url=https://c.y.qq.com/musichall/fcgi-bin/fcg_yqqhomepagerecommend.fcg?g_tk=5381&uin=0&format=json&inCharset=utf-8&outCharset=utf-8&notice=0&platform=h5&needNewCode=1&_=1537241063139')
                let datauser = await data.json();
                return datauser;
            }catch (e) {
                console.log(e);
            }

        }
    }
})();

export default http
export const ERR_OK = 0